# 1.导模块
from pptx import Presentation


# 2.实例化对象 创建文稿
from pptx.slide import Slide

pre = Presentation()

from pptx.presentation import Presentation
pre:Presentation = pre

# 添加 样式 1的  幻灯片
slide_layout = pre.slide_layouts[1]
slide:Slide = pre.slides.add_slide(slide_layout)


# 占位符
shapes = slide.shapes.placeholders
shapes[0].text = '文章一级标题'
shapes[1].text = '正文内容'

print(shapes)


# 3.保存文稿
pre.save('06shape.pptx')

print('占位符')